﻿using System;
using System.Collections.Generic;
using System.Collections;

namespace LanhuFx.Context.PgSql.ResourcesModels
{
    public partial class IdentityPermissionsetting
    {
        public IdentityPermissionsetting()
        {
            IdentityRolepermissions = new HashSet<IdentityRolepermissions>();
            IdentityUserpermissions = new HashSet<IdentityUserpermissions>();
            InverseParent = new HashSet<IdentityPermissionsetting>();
        }

        public Guid Id { get; set; }
        public string Modular { get; set; }
        public string Name { get; set; }
        public Guid? Parentid { get; set; }
        public BitArray Isroot { get; set; }
        public int? Permissiontype { get; set; }
        public Guid? Teamid { get; set; }
        public int? Sortvalue { get; set; }
        public string Groupname { get; set; }

        public virtual IdentityPermissionsetting Parent { get; set; }
        public virtual IdentityTenant Team { get; set; }
        public virtual ICollection<IdentityRolepermissions> IdentityRolepermissions { get; set; }
        public virtual ICollection<IdentityUserpermissions> IdentityUserpermissions { get; set; }
        public virtual ICollection<IdentityPermissionsetting> InverseParent { get; set; }
    }
}
